package org.example.text05;

/**
 * 拿固定工资的员工
 */

public class SalariedEmployee extends Employee{
        private double salary;// 月薪

        public SalariedEmployee() {
        }

        public SalariedEmployee(String name, int month, double salary) {
                super(name, month);
                this.salary = salary;
        }

        public double getSalary() {
                return salary;
        }

        public void setSalary(double salary) {
                this.salary = salary;
        }
}
